import { stringify } from 'qs';
import request from '../utils/request';
import { getApiToken } from '../utils/authority';

export async function query() {
  return request('/api/users');
}

export async function queryCurrent() {
  const params = { 'access-token' : getApiToken()};
  return request(`/api/web/backend/accounts/info?${stringify(params)}`);
}
